package com.bit.blog.pojo.response;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

//用户响应类的设计；
@Data
@AllArgsConstructor
public class UserLoginResponse {
    @NotNull(message ="用户名不能为空")
    @Length(max=20)
    private Integer userId;
    @Length(min=5,message = "密码长度不能小于5")
    @NotNull(message="密码不能为空")
    private String  token;
}
